package com.yl.order.db.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;

import java.io.Serializable;

/**
 * create by cjx on 2024/4/19
 * desc:
 */
@Entity
public class OrderEntity implements Serializable {
    @Transient
    public static final long serialVersionUID = -1L;
    @Id(autoincrement = true)
    private Long id;  //数据库自动增长id
    @Unique
    private String orderNo; // 订单编号
    private String originName; // 来源名称
    private int serialNo; // 流水号
    private int orderStatus; // 订单状态，0：已取消；1：已支付；2：待支付；3：已完成；4：已退款
    private String totalAmount; // 总价
    private long updateTimestamp; // 修改时间戳
    private String updateTime; // 修改时间
    private long createTimestamp; // 创建时间戳
    private String createTime; // 时间
    @Generated(hash = 1889517412)
    public OrderEntity(Long id, String orderNo, String originName, int serialNo,
            int orderStatus, String totalAmount, long updateTimestamp,
            String updateTime, long createTimestamp, String createTime) {
        this.id = id;
        this.orderNo = orderNo;
        this.originName = originName;
        this.serialNo = serialNo;
        this.orderStatus = orderStatus;
        this.totalAmount = totalAmount;
        this.updateTimestamp = updateTimestamp;
        this.updateTime = updateTime;
        this.createTimestamp = createTimestamp;
        this.createTime = createTime;
    }
    @Generated(hash = 959685193)
    public OrderEntity() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getOrderNo() {
        return this.orderNo;
    }
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }
    public String getOriginName() {
        return this.originName;
    }
    public void setOriginName(String originName) {
        this.originName = originName;
    }
    public int getSerialNo() {
        return this.serialNo;
    }
    public void setSerialNo(int serialNo) {
        this.serialNo = serialNo;
    }
    public int getOrderStatus() {
        return this.orderStatus;
    }
    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }
    public String getTotalAmount() {
        return this.totalAmount;
    }
    public void setTotalAmount(String totalAmount) {
        this.totalAmount = totalAmount;
    }
    public long getUpdateTimestamp() {
        return this.updateTimestamp;
    }
    public void setUpdateTimestamp(long updateTimestamp) {
        this.updateTimestamp = updateTimestamp;
    }
    public String getUpdateTime() {
        return this.updateTime;
    }
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
    public long getCreateTimestamp() {
        return this.createTimestamp;
    }
    public void setCreateTimestamp(long createTimestamp) {
        this.createTimestamp = createTimestamp;
    }
    public String getCreateTime() {
        return this.createTime;
    }
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    
}
